package Factory;

import PathPoint.Path;
import model.ProgBob;

public class LevelFactory
{
    public void initLevel (ProgBob bob)
    {
        if (bob.sub_level == 1)
        {
            bob.fish_to_save_at_start = bob.fish_to_save = 80;
            bob.path_speed = 0.4;
            bob.path_inc_x = 320;
            bob.path_inc_y = -10;
            bob.path_start_t = 32;
            bob.num_path_points = 53;
            bob.myPath = new Path(bob.num_path_points, bob.path_inc_x, bob.path_inc_y);
            bob.myPath.setPathPoint(bob.sub_level);
        }
        else if (bob.sub_level == 2)
        {
            bob.fish_to_save_at_start = bob.fish_to_save = 180;
            bob.path_speed = 0.5;
            bob.path_inc_x = 0;
            bob.path_inc_y = 59;
            bob.path_start_t = 14;
            bob.num_path_points = 78;
            bob.myPath = new Path(bob.num_path_points, bob.path_inc_x, bob.path_inc_y);
            bob.myPath.setPathPoint(bob.sub_level);
        }
        else if (bob.sub_level == 3)
        {
            bob.fish_to_save_at_start = bob.fish_to_save = 128;
            bob.path_speed = 0.65;
            bob.path_inc_x = 10;
            bob.path_inc_y = 323;
            bob.path_start_t = 15;
            bob.num_path_points = 21;
            bob.myPath = new Path(bob.num_path_points, bob.path_inc_x, bob.path_inc_y);
            bob.myPath.setPathPoint(bob.sub_level);
        }
        else if (bob.sub_level == 4)
        {
            bob.fish_to_save_at_start = bob.fish_to_save = 150;
            bob.path_speed = 0.8;
            bob.path_inc_x = 67;
            bob.path_inc_y = 0;
            bob.path_start_t = 6;
            bob.num_path_points = 58;
            bob.myPath = new Path(bob.num_path_points, bob.path_inc_x, bob.path_inc_y);
            bob.myPath.setPathPoint(bob.sub_level);
        }
        else if (bob.sub_level == 5)
        {
            bob.fish_to_save_at_start = bob.fish_to_save = 150;
            bob.path_speed = 0.4;
            bob.path_inc_x = 0;
            bob.path_inc_y = 60;
            bob.path_start_t = 24;
            bob.num_path_points = 48;
            bob.myPath = new Path(bob.num_path_points, bob.path_inc_x, bob.path_inc_y);
            bob.myPath.setPathPoint(bob.sub_level);
        }
    }
}